import request from '../utils/request'
import type { Category } from '../types/category'

export const getCategories = () => {
	return request<Category[]>({
		url: 'category/list'
	})
}